package com.lrkj.common.core.domain;

import com.lrkj.common.utils.StringUtils;

public class OrderParam {

    private String key;

    private String order;

    private String alias;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        if(StringUtils.isNotBlank(order)){
            if(order.equals("descending")){
                this.order = "desc";
            }else if(order.equals("asccending")){
                this.order = "asc";
            }
        }
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }
}
